<#include "header.htm"/>
<#import "../macros/pagination.ftl" as pagination/>

<script type="text/javascript" src="${contextPath}/templates/${templateName}/js/pagination.js?${startupTime}"></script>
<script type="text/javascript">
<!--
<#include "js/utils.js"/>

-->
</script>



		
	<h2 class="solo">${I18n.getMessage("User.members")}</h2>
		
		
    <div class="pagination">
        <#if thisPage?exists><@pagination.doPagination "${action}", -1/></#if>
    </div>


	
<div class="forumbg forumbg-table">
	<div class="inner"><span class="corners-top"><span></span></span>

		<table class="table1" cellspacing="1" id="memberlist">
		<thead>
		<tr>
			<th class="name"><span class="rank-img">${I18n.getMessage("User.rank")}</span>${I18n.getMessage("User.username")}</th>
			<th class="posts">${I18n.getMessage("User.posts")}</th>
			<th class="info">${I18n.getMessage("User.website")}, ${I18n.getMessage("User.location")}</th>
			<th class="joined">${I18n.getMessage("User.joined")}</th>
			
		</tr>
		</thead>
		<tbody>
	


    <#assign counter = 1/>
	<#list users as user>
		<#if (user.id > 1)>
		<#if counter % 2 == 0>
			<#assign rowColor = "bg2">
		<#else>
			<#assign rowColor = "bg1">
		</#if>
			<tr class="${rowColor}">
				<td><span class="rank-img">${rank.getRankTitle(user.rankId, user.totalPosts)}</span><a href="${JForumContext.encodeURL("/user/profile/${user.id}")}">${user.username}</a></td>
				<td class="posts">
				<#if (user.totalPosts > 0)>
				    <a href="${JForumContext.encodeURL("/posts/listByUser/${user.id}")}" title="${I18n.getMessage("PostShow.searchPosts")}">${user.totalPosts}</a>
				 <#else>
				    ${user.totalPosts}
				 </#if>
				 </td>
				<td class="info"><div>
				<#if (user.webSite?exists && user.webSite?length > 0)>
				    <a href="${user.webSite}" title="${I18n.getMessage("PostShow.visitSite")}: ${user.webSite}">${user.webSite}</a>
				<#else>
				    ${user.webSite?default("&nbsp;")}
				</#if>	
				</div>
				<div>${user.from?default("&nbsp;")}</div></td>
				
				<td>${user.registrationDate}</td>
			</tr>
			<#assign counter = counter + 1/>

		</#if>
	</#list>
</table>




	<span class="corners-bottom"><span></span></span></div>
</div>




    <div class="pagination">
        <#if thisPage?exists><@pagination.doPagination "${action}", -1/></#if>
    </div>

<#include "bottom.htm"/>